<include file="./Application/Home/View/Public/adminheader.html" />
<!--index.start-->
<div class="admin">

    <div class="tab">
        <div class="tab-head">
            <strong>设置</strong>
            <ul class="tab-nav">
                <li class="active"><a href="#tab-set">友情链接</a></li>
            </ul>
        </div>
        <div class="tab-body">
            <br />
            <div class="tab-panel active" id="tab-set">
            </div>
        </div>
        <div class="line">
            <div class="x6 x3-move">
                <div class="panel border-sub">
                    <div class="panel-head  border-sub bg-sub">
                        <strong>友情链接</strong>
                    </div>
                    <div class="panel-body">
                        <empty name="lj">
                            <div class="alert alert-yellow">
                                <span class="close rotate-hover"></span><strong>提示：</strong>还没有留言哦</div>
                            <else />


                            <table class="table">
                                <tr>
                                    <th>
                                        名称
                                    </th>
                                    <th>
                                        网址
                                    </th>
                                    <th>
                                        状态
                                    </th>
                                    <th>
                                        访问
                                    </th>
                                    <th>
                                        操作
                                    </th>
                                </tr>
                                <volist name="lj" id="vo">
                                    <tr>
                                        <td>
                                            <{$vo.mc}>
                                        </td>
                                        <td>
                                            <{$vo.wz}>
                                        </td>
                                        <td>
                                            <eq name="vo['zt']" value="1">
                                                <b class="button bg-green">正常</b>
                                                <else/>
                                                <b class="button bg-red-light">未审核</b>
                                            </eq>
                                        </td>
                                        <td>
                                            <a href="<{$vo.wz}>"class="button bg-green">访问</a>
                                        </td>
                                        <td>
                                            <div class="button-toolbar">
                                                <div class="button-group">
                                                    <button type="button" class="button dropdown-toggle">
                                                        操作 <span class="downward"></span>
                                                    </button>
                                                    <ul class="drop-menu">
                                                        <eq name="vo['zt']" value="1">
                                                            <li><a href="__URL__/shenhe/id/<{$vo.id}>/zt/0">取消审核</a> </li>
                                                            <else/>
                                                            <li><a href="__URL__/shenhe/id/<{$vo.id}>/zt/1">通过</a> </li>
                                                        </eq>
                                                        <li><a href="__URL__/delectlj/id/<{$vo.id}>">删除</a> </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </volist>
                            </table>


                        </empty>
                        <button class="button button-big bg-main dialogs" data-toggle="click" data-target="#mydialog" data-mask="1" data-width="50%">
                            我要加入</button>
                        <div id="mydialog">
                            <div class="dialog">
                                <div class="dialog-head">
                                    <span class="close rotate-hover"></span><strong>友情链接申请</strong>
                                </div>
                                <div class="dialog-body">
                                    <form action="__URL__/doshenqing"method="post">
                                        <div class="form">
                                            <div class="label">
                                                <label for="username">
                                                    网站名称：</label>
                                            </div>
                                            <div class="field">
                                                <input type="text" class="input input-auto" name="mc" size="30" placeholder="网站名称" />
                                            </div>
                                            <div class="label">
                                                <label for="username">
                                                    网站简称：</label>
                                            </div>
                                            <div class="field">
                                                <input type="text" class="input input-auto"name="jc" size="30" placeholder="网站简称" />
                                            </div>
                                            <div class="label">
                                                <label for="username">
                                                    网址：</label>
                                            </div>
                                            <div class="field">
                                                <input type="text" class="input input-auto"name="wz" size="30" value="http://" />
                                            </div>

                                        </div>
                                        <br>
                                        <div class="dialog-foot">
                                            <input type="submit"class="button bg-green" value="申请">
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>

    </div>
</div>
<include file="./Application/Home/View/Public/adminfooter.html" />